package com.hh.game.service.gateway.webscoket.config;

import cn.hutool.core.util.StrUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

public class WebSocketServerDefaultConfig {
    public static final int port = 8081;
    public static final String path = "/websocket";
    public static final int maxConnectSize = 50000;

    public static final int workLoopGroupThreads = Runtime.getRuntime().availableProcessors() * 2;
    public static final int workPoolQueueSize = 5000000;

    public static final int readerIdleTimeSeconds = 30;
    public static final int writerIdleTimeSeconds = 30;
    public static int allIdleTimeSeconds = 0;

    public static final boolean SSL = false;
    public static final String sslCertificate = null;
    public static final String sslCertificateKey = null;

    public static final int workThreadSize = Runtime.getRuntime().availableProcessors() * 2;
    public static final int workQueueSize = 20000;


}
